import { ServiceTester } from '../tester.js'
export const t = new ServiceTester({
  id: 'SnykVulnerabilityNpm',
  title: 'SnykVulnerabilityNpm',
  pathPrefix: '/snyk/vulnerabilities/npm',
})
t.create('latest version').get('/commander.json').expectBadge({
  label: 'vulnerabilities',
  message: 'no longer available',
})

t.create('scoped package latest version').get('/@babel/core.json').expectBadge({
  label: 'vulnerabilities',
  message: 'no longer available',
})

t.create('package specific version').get('/commander@2.20.0.json').expectBadge({
  label: 'vulnerabilities',
  message: 'no longer available',
})
